<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let a=10,b=20;
    console.log(a,b);
    //ES6语法
    let[c,d]=[30,40]
    console.log(a,d)

    //对象解构
    let m='lihua'
    let n=22
    let user={name:m,age:n}
    console.log(user)
    console.log(user.name)
    console.log(user.age)
    //ES6语法
    let{age,name}=user
    console.log(name)
    console.log(age)
</script>
</html>